package com.taimi.springbootzendaodemo.system;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

@Data
@ConfigurationProperties("zendao")
@Component
public class ZendaoProperties {
    private String username;
    private String password;
    private ZenDaoCookie cookie =new ZenDaoCookie();
    private String address;
    private String url;

    @Data
    public static class ZenDaoCookie {
        private boolean enable;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public ZenDaoCookie getCookie() {
        return cookie;
    }

    public void setCookie(ZenDaoCookie cookie) {
        this.cookie = cookie;
    }
}